// import $kt from "@/kantboot/index.js";
// import $api from "@/api/index.js";
var result = new Object();

uni.$on("languageChange", (res) => {
	uni.setStorageSync("language", res);
	result.requestI18n();
});

result.appFront = uni.getStorageSync("appFront");

result.getAppFront = function() {
	return uni.getStorageSync("appFront");
}

result.getLanguage = function() {
	if (uni.getStorageSync("language") != null && uni.getStorageSync("language") != "") {
		return uni.getStorageSync("language");
	}
	return uni.getSystemInfoSync().osLanguage;
}

result.language = result.getLanguage();

export default result;
